package Collection;

import org.junit.Test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Collectionsdemo1 {
    @Test
    public void method1(){
        List<Integer> list=new ArrayList<>();
        list.add(20);
        list.add(70);
        list.add(40);
        list.add(80);
        list.add(100);
        System.out.println(list);
        Collections.sort(list);
        System.out.println(list);
        Collections.reverse(list);
        System.out.println(list);
        Collections.shuffle(list);
        System.out.println(list);

    }
}
